﻿using System;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;

namespace Guan.CMS.Web.ViewModels.Contact
{
    public class ContactFormModel
    {
        [DisplayName("称呼"), Required(ErrorMessage = "必填"), StringLength(200,ErrorMessage = "50字以内")]
        public string Name { get; set; }

        [DisplayName("E-mail"), StringLength(200, ErrorMessage = "长度200以内")]
        public string Email { get; set; }

        [DisplayName("标题"), StringLength(200, ErrorMessage = "200字以内")]
        public string Title { get; set; }

        [DisplayName("内容"), StringLength(500, ErrorMessage = "500字以内")]
        public string Message { get; set; }

        [DisplayName("IP地址")]
        public string IP { get; set; }

        [DisplayName("添加时间")]
        public DateTime CreatedTime { get; set; }
    }
}